<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for("test/SendEmailTest") ?>"  method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
    <?php echo $form->renderHiddenFields(false) ?>
    <label for="to"><?php echo $form["to"]->renderLabel() ?></label>
    <div class="in">
        <?php echo $form["to"]->render(); ?>
        <?php if($form["to"]->renderError() != NULL): ?>
        <div class="ui-state-error">
            <?php echo $form["to"]->renderError()?>
        </div>
        <?php endif ;?>
    </div>
    <label for="title"><?php echo $form["title"]->renderLabel() ?></label>
    <div class="in">
        <?php echo $form["title"]->render(); ?>
        <?php if($form["title"]->renderError() != NULL): ?>
        <div class="ui-state-error">
            <?php echo $form["title"]->renderError()?>
        </div>
        <?php endif ;?>
    </div>
    <label for="body"><?php echo $form["body"]->renderLabel() ?></label>
    <div class="in">
        <?php echo $form["body"]->render(); ?>
        <?php if($form["body"]->renderError() != NULL): ?>
        <div class="ui-state-error">
            <?php echo $form["body"]->renderError()?>
        </div>
        <?php endif ;?>
    </div>
    <input type="submit" class="btn primary" value="Envoyer l'email"/>
</form>